<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#father{
				position:relative;
				width:200px;
				height:160px;
				border:1px dashed gray;
			}
			#son{
				position:absolute;
				top:50%;
				left:50%;
				margin-top:-30px;
				margin-left:-50px;
				width:100px;
				height:60px;
				background-color:deeppink;
			}
		</style>
	</head>
	<body>
		<div id="father">
			<div id="son"></div>
		</div>
	</body>
</html>
